﻿/*********************************************************
 * 开发者：潘克
 * 创建时间：2016/4/26 15:17:33
 * 描述：
 * 
 * 更新历史：
 * 
 * *******************************************************/


namespace Hidistro.Core
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Web.Configuration;

    public static class NginxServer
    {
        public static bool IsInit = false;
        static string NginxServerName = "";
        static string AccountServerName = "";

        public static string GetNginxServerName()
        {
            if (IsInit)
            { }
            else
                Init();

            return NginxServerName;
        }

        public static string GetAccountServerName()
        {
            if (IsInit)
            { }
            else
                Init();

            return AccountServerName;
        }

        public static void Init()
        {
            NginxServerName = WebConfigurationManager.AppSettings["NgxinServer"];
            AccountServerName = WebConfigurationManager.AppSettings["AccountServer"];
            IsInit = true;
        }
    }
}
